<template>
    <view style="padding:20rpx;">
        <!-- {{JSON.stringify(content)}} -->
        <!-- 内容页面模板 -->
<!--        <zqs-ux-parser :list="content"></zqs-ux-parser>
        <button type="primary" @click="edit">编辑文章</button> -->
    </view>
</template>

<script>
    export default {
        data() {
            return {
                content: []
            }
        },
        methods: {
            edit() {
                const storage_key = 'ux_content'
                uni.setStorageSync(storage_key, JSON.stringify(this.content));
                // uni.navigateTo({
                //     url: `/uni_modules/zqs-ux-editor/pages/edit?storage=${storage_key}`,
                //     events: {
                //         onSave: (content) => {
                //             //更新内容
                //             this.content = content;
                //         }
                //     }
                // });
            },
        },
        onLoad() {
            let d = uni.getStorageSync('ux_content');
            if (d) {
                this.content = JSON.parse(d);
            }
        },
        onShow() {

        }
    }
</script>

<style lang="scss">
</style>